home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / powerb5.zip / P5MSC008.TIP < prev    next >
Text File  |  1993-06-01  |  2KB  |  39 lines

  1. Here's a way to avoid invoking Windows 3.0 again from within
  2. a Windows DOS session. First, rename C:\WINDOWS\WIN.COM to
  3. WINDOWS.COM. Then copy the batch file called WIN.BAT [it's
  4. in the P5MSC directory on your PowerBase *.* Volume 5
  5. diskette -Ed.] in your WINDOWS directory. (If your WINDOWS
  6. directory isn't C:\WINDOWS, you'll need to alter the batch
  7. file appropriately.) Typing WIN at the DOS prompt will
  8. thereafter call the batch file instead of loading Windows
  9. directly. The batch file works by looking for a swap file,
  10. WIN?86.SWP (it's WIN386.SWP in 386-enhanced mode and
  11. WIN286.SWP in standard mode), that's present only when
  12. Windows is running. If you run WIN when Windows isn't
  13. running, WIN.BAT starts it for you via WINDOWS.COM. But if
  14. you run it in a Windows DOS session, the batch file will
  15. execute an EXIT command and return you to the desktop.
  16.  
  17. Walter J. Orlik
  18. Delray Beach, Florida
  19.  
  20. Editor's Note: This batch file is a good way to keep from
  21. invoking Windows 3.0 twice (Windows 3.1 won't let you
  22. accidentally load it inside itself) -- IF you use a
  23. temporary swap file. (If you use Windows without a swap
  24. file, or with a permanent swap file, this batch won't work.)
  25. Our December 1991 column featured a solution to this problem
  26. that works regardless of whether or how Windows is doing
  27. swapping: INWINEQ1, which returns an ERRORLEVEL of 1 when
  28. Windows is running. Both of these techniques can be used to
  29. keep from turning Windows 3.0 into a memory-eating hall of
  30. mirrors.
  31.  
  32.  
  33. Title: Do Not Recurse Into Windows
  34. Category: MSC
  35. Issue Date: September, 1992
  36. Editor: Brett Glass
  37. Supplementary Files: P5MSC\WIN.BAT
  38. Filename: P5MSC008.TIP
  39.